package com.gac.basedownload;

import android.text.TextUtils;

public class QueueTaskDownload implements Runnable{
    String mUrl = null;


    public QueueTaskDownload(String url){
        mUrl = url;
    }



    @Override
    public void run() {
        if(!TextUtils.isEmpty(mUrl)){
            download(mUrl);
        }
    }

    private void download(String url){
        new GacDownload.Builder().url(url).build().startDownload();
    }
}
